package com.ps.feign;

import com.ps.feign.impl.LikeFeignImpl;
import com.ps.property.TOtherLike;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author gt
 * @类说明：
 * @date 2020/10/27 19:21
 */
@FeignClient(value = "like-provide",fallback = LikeFeignImpl.class)
public interface LikeFeign {
    @PostMapping("/likeAdd-provide")
    int likeAdd(@RequestBody TOtherLike tOtherLike);

    @GetMapping("/likeQuery-provide")
    List<TOtherLike> likeQuery(@RequestParam("currentPage") int currentPage, @RequestParam("pageSize") int pageSize);

    @PostMapping("/likeUpdate-provide")
    int likeUpdate(@RequestBody TOtherLike tOtherLike);

    @GetMapping("/likeQueryById-provide/{likeId}")
    TOtherLike likeQueryById(@PathVariable int likeId);
}
